home *** CD-ROM | disk | FTP | other *** search
- Path: dawn.mmm.com!news
- From: cjsonnack@mmm.com (Chris Sonnack)
- Newsgroups: comp.lang.c,comp.unix.programmer
- Subject: Re: Q: '\n' character
- Followup-To: comp.lang.c,comp.unix.programmer
- Date: 15 Apr 1996 14:50:12 -0500
- Organization: 3M/IT/EIS (St.Paul,MN 55144)
- Message-ID: <4ku99k$4ub@dawn.mmm.com>
- References: <4kj66f$k0o@ren.cei.net> <4kko80$8np@news.ld.centuryinter.net> <4kkvvsINN8fs@keats.ugrad.cs.ubc.ca> <4kmdsv$ojc@masala.cc.uh.edu> <4kmhpsINN7ak@keats.ugrad.cs.ubc.ca>
- Reply-To: cjsonnack@mmm.com (Chris Sonnack)
- X-Newsreader: TIN [version 1.2 PL2]
-
- Kazimir Kylheku (c2a192@ugrad.cs.ubc.ca) wrote:
-
- > Oops, I didn't notice that.
-
- Which, by your standards, enables us to call you all sorts of names, right?
-
- > So how is it right if it had undesired effects under certain conditions?
-
- Because sometimes you need a short, simple solution to a problem and can
- pretty much guarentee "certain conditions" will not occur, or if they do,
- catastrophic failure is okay in these rare cases. Not recommending this as
- a way of working or designing, just pointing the potential DOES exist.
-
- > And of course, *real* UNIX users don't put lines longer than 79 chars into
- > a textfile anyway...
-
- Correct! ;-> (I know I //never// do!!)
-
- > Humor me as to why it is necessary to retain a whole string of data just
- > to then scan through it to find its length to remove the trailining
- > newline, which was put there by a standard library function that already
- > scanned the characters once to _find_ the newline in the first place.
-
- I found your solution was the most correct and elegant. In fact, it's a
- very nice solution and you did solve the original problem in the best
- way it could be solved.
-
- Doesn't change the fact that you're still rather a jerk.
-
- --
- Chris Sonnack <cjsonnack@mmm.com> http://eishcq.mmm.com
- Engineering Information Services/Information Technology/3M, St.Paul, Minn
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- An intellectual is someone whose mind watches itself
-
- Opinions expressed herein are my own and may not represent those of my employer.
-